package com.hualan.mapper;

import com.hualan.pojo.Consultant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConsultantMapper {
    List<Consultant> queryAllConsultant(String name);
    void addConsultant(Consultant consultant);
    void updateConsultant(Consultant consultant);
    void deleteConsultant(List<Integer> ids);
    Integer getConsultantIdByName(String name);
    void updateConsultantName(@Param("id") Integer id, @Param("name") String name);
    Consultant searchById(Integer id);
    List<Consultant> find(String field,String levelName);
}
